package com.example.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * GP数据库配置
 *
 * @author yuanz
 */
@Data
@Component
@ConfigurationProperties(GreenplumConfiguration.PREFIX)
public class GreenplumConfiguration {

    /**
     * 前缀
     */
    public static final String PREFIX = "spring.datasource.dynamic.datasource.greenplum";

    /**
     * 参数
     */
    public String driverClassName;
    public String url;
    public String username;
    public String password;

}
